package com.itboye.sunsun.network;

import java.util.HashMap;
import java.util.Map;

import com.android.volley.NetworkResponse;
import com.android.volley.Response;
import com.android.volley.toolbox.JsonArrayRequest;
import com.android.volley.toolbox.JsonRequest;

public class LoginNetWork {

	
	  //注册
	 public void regist(String reg_type,String username,String from,String password,String code)
	  {
		 
		 
		  Map<String ,String> map=new HashMap<String, String>();
		  
		  //添加业务参数
		  map.put("reg_type", reg_type);
		  map.put("username", username);
		  map.put("from", from);
		  map.put("password", password);
		  map.put("code", code);
//		  HttpRequest.getDefaultRequestQueue().add(new  JsonRequest<String>(0, code, code, null, null) {
//
//			@Override
//			protected Response<String> parseNetworkResponse(NetworkResponse arg0) {
//				// TODO Auto-generated method stub
//				return null;
//			}
//		});
//		  HttpRequest.getInstance().execute(map,"BY_User_register");
	  }
	
	  //登录
	  public void login()
	  {
		 // HttpRequest.getInstance().execute();
	  }
	  
	  
	  
}
